const express = require('express')
const app = express()

app.use(express.json())
app.use(express.urlencoded({ extended: false }))

app.post('/test', (req, res) => {
  console.log(req.body);
  res.send('post test')
})

app.post('/book', (req, res) => {
  console.log(req.body);
  res.send('post book')
})

app.listen(8089, () => {
  console.log('服务器启动成功');
})